package com.roc.web.timer;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 
 * @author Feng haitao 
 *
 */
public abstract class AbstractTask extends QuartzJobBean {

	protected final Log log = LogFactory.getLog(this.getClass());

	protected void executeInternal(JobExecutionContext context)
			throws JobExecutionException {
		this.execute();
	}


	protected abstract void execute();

}
